<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
		
		<div class="abc">aa</div>
		<div class="abc">bb</div>
		<div class="abc">cc</div>
		<div>dd</div>
	</body>
	
	<script>
		
		var div = document.querySelector('.abc');
		console.log(div.innerText);
		
		
		var ds = document.querySelectorAll('.abc');
		console.log(ds.length);
	</script>
</html>
